Skip to main content

Work Experience

Pada halaman Employee Work Experience ini Anda dapat menggunakan metode :

  1. POST
  2. GET

POST​

Add new Work Experience of Employee​

Tujuan : Untuk menambahkan pengalaman kerja yang dimiliki Karyawan

Method : POST

API Endpoint : [[baseurl]]/api/integration/v1/employee/work-experiences

HEADER

X-TenantID: [[tenantid]]
Authorization: Bearer [[accesstoken]]
Catatan

Untuk mengetahui [[baseurl]], dan [[tenantid]], Anda dapat mempelajarinya pada halaman Integration Credential. Dan untuk [[accesstoken]] dapat dipelajari pada halaman Authorization Token.

BODY PAYLOAD (JSON)

{
"employeeNo": "0821060",
"employerName": "Agung Sedayu Group",
"position": "Talent Acquisition Staff",
"typeOfBusiness": "Property Developee",
"startDate": "2020-10-01",
"endDate": "2021-08-03",
"active": true
}
CONSUME VIA CURL

curl --location --request POST '[[baseurl]]/api/integration/v1/employee/work-experiences' \
--header 'X-TenantID: [[tenantid]]' \
--header 'Authorization: Bearer [[accesstoken]]' \
--header 'Content-Type: application/json' \
--data-raw '{
"employeeNo": "0821060",
"employerName": "Agung Sedayu Group",
"position": "Talent Acquisition Staff",
"typeOfBusiness": "Property Developee",
"startDate": "2020-10-01",
"endDate": "2021-08-03",
"active": true
}'

API Response :

{
"message": "Create Data Successfully",
"error": false
}

GET​

Get detail Employee Work Experiences with employeeNo parameter​

Tujuan : Untuk mendapatkan detail pengalaman kerja yang dimiliki Karyawan dengan parameter employeeNo

Method : GET

API Endpoint : [[baseurl]]/api/integration/v1/employee/work-experiences?active=[[value]]&employeeNo=[[employeenumber]]

Catatan

Parameter [[value]] diisi dengan "true" jika data karyawan tersebut aktif atau "false" jika data karyawan tersebut tidak aktif. Dan parameter [[employeenumber]] diisi dengan nomor karyawan yang diinginkan.

HEADER

X-TenantID: [[tenantid]]
Authorization: Bearer [[accesstoken]]
CONSUME VIA CURL

curl --location --request GET '[[baseurl]]/api/integration/v1/employee/work-experiences?active=[[value]]&employeeNo=[[employeenumber]]' \
--header 'X-TenantID: [[tenantid]]' \
--header 'Authorization: Bearer [[accesstoken]]'
Catatan

Untuk mengetahui [[baseurl]], dan [[tenantid]], Anda dapat mempelajarinya pada halaman Integration Credential. Dan untuk [[accesstoken]] dapat dipelajari pada halaman Authorization Token.

API Response :

[
{
"employeeId": "eba2b46b-929c-11eb-97ce-0adbcc9eaaa8",
"employeeNo": "1219003",
"details": [
{
"id": "bb774d45-99e9-4f43-bc8d-9c6967ce88eb",
"employerName": "TEst",
"position": "TRACE Global Anti-Bribery Compliance Course for Intermediaries",
"typeOfBusiness": null,
"startDate": "2021-04-09",
"endDate": null,
"active": false
}
]
}
]